#include <iostream>
#include <string>
#include <dlfcn.h>
#include <string.h>
#include <ncurses.h>

using TestFuncType = void(*)();

int main(int argc, char* argv[]){
    int choice = 0;
    if (argc == 2) {
        choice = atoi(argv[1]);
    }
    std::string funcName = std::string("Test") + std::to_string(choice);
    TestFuncType func = (TestFuncType)dlsym(nullptr, funcName.c_str());
    if (func == nullptr) {
        std::cout << "Unsupport func\n";
        exit(1);
    }
    func();
    return 0;
}